package com.main;

import com.prosay.iocfactory.ApplicationContext;
import com.prosay.pojo.Student;
import com.prosay.service.StudentService;
import com.will.ClassPathXmlApplicationContext;

public class TestIOC {
    public static void main(String[] args) {
    	ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
    	
    	StudentService service = (StudentService)context.getBean("StudentService");
    	Student stu1 = service.getStudent();
    	System.out.println(stu1.introduce()); 
	}
}
